package com.itheima.MutiTest;

public class TestMuti {
    public static void main(String[] args) {
        useAnimal(new Animal());
        useAnimal(new Dog());
    }

    public static void useAnimal(Animal animal){
        animal.eat();
    }
}
